<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
        /* 给数组添加一个值 */
        var arr=[1,2,3,4];
        /* 
        push -->给数组尾部添加值
        splice(startNumber,number)
         */
        arr.push(5);
        arr.splice(1,1)
        console.log(arr)
    </script>
</body>
</html>